<!DOCTYPE html>
<html lang="cn" class="app fadeInUp animated js no-touch no-android chrome no-firefox no-iemobile no-ie no-ie10 no-ie11 no-ios">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta charset="utf-8">
	 <title>请假详情</title>
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <meta content=" " name="Keywords">
    <meta content="" name="Description">
	<link href="./Tpl/Qyapp/Workflow/css/m.css" rel="stylesheet" type="text/css" />
	<link href="./Tpl/Qyapp/Workflow/css/cate24_0.css" rel="stylesheet" type="text/css" />
	<link href="./Tpl/Qyapp/Workflow/css/index.css" rel="stylesheet" type="text/css" />
	<link rel="stylesheet" type="text/css" href="./Tpl/Qyapp/Workflow/css/m2265.css">
	<link rel="stylesheet" type="text/css" href="./Tpl/Qyapp/Leave/css/act_inf.css">
	<script src="./Tpl/Qyapp/Static/Js/jquery-1.9.1.min.js" type="text/javascript"></script>
    <link href="./Tpl/Qyapp/Vote/css/iDialog.css?v=2014110717" rel="stylesheet">
    <script src="./Tpl/Qyapp/Vote/js/helper.js" type="text/javascript" charset="utf-8"></script>
<script>
$(document).ready(function(){ 
	$(".submit").click(function() {
		var subdata='token={lanrain::$_GET['token']}&wecha_id={lanrain::$_GET['wecha_id']}&pid={lanrain:$data.id}';
		//alert({lanrain:$data.id});

		$.ajax({
				type: "post",  
				url:"{lanrain::U('agree')}",
				dataType:'json',
				data:subdata,
				success:function(json){
					//var status = json.status;
					if(json==1){
						alert("同意成功");
						window.location.reload();
					}else if(json==2){
						alert("你的申请已经被驳回");
					}else if(json==3){
						alert("同意失败");
					}
				}
			});
	
  });
  
  
  
  $(".back").click(function() {
		var subdata='token={lanrain::$_GET['token']}&wecha_id={lanrain::$_GET['wecha_id']}&pid={lanrain:$data.id}';
		$.ajax({
				type: "post",  
				url:"{lanrain::U('out')}",
				dataType:'json',
				data:subdata,
				success:function(json){
					var status = json.status;
					if(status==1){
						alert('操作成功');
						window.location.reload();
					}else if(status==3){
						alert('您已经审核');
						window.location.reload();
					}else{
						alert('操作失败');
					}
				}
			});
	
  });
});
</script>
	</head>
	<body id="cate12" style="background-color:#f8f8f8;" >
<div>
<div class="dsmyxm">
<div class="renwu"><div class="rightdq">请假人:</div><span>{lanrain:$user.name}</span></div>
<div class="renwu"><div class="rightdq">类型:</div><span>{lanrain:$data.types.cname}</span></div>
<div class="renwu"><div class="rightdq">日期:</div><span>{lanrain:$data.start_time}</span>
<if condition="$data['stop_time']">到{lanrain:$data.stop_time}</if></div>
<div class="renwu"><div class="rightdq">创建时间:</div><span>{lanrain:$data.time|date="Y-m-d H:i:s",###}</span></div>
<div class="renwu"><div class="rightdq">详情:</div>
<if condition="$data['daytype'] eq 1"><span>请假一上午</span></if>
<if condition="$data['daytype'] eq 2"><span>请假一下午</span></if>
<if condition="$data['timetype'] eq 3"><span>请假{lanrain:$data.day}天</span></if>
<if condition="$data['hour']"><span>请假{lanrain:$data.hour}小时</span></if>
{lanrain:$data.reson}</div>
<div class="renwu">
	<div class="rightdq">{lanrain:$data.check_now}:</div>
	<if condition="$checks['status'] eq 0"><i class="ing">审批中</i></if>
	<if condition="$checks['status'] eq 1"><span style=" color:#F33;">已审批</span></if>
	<if condition="$checks['status'] eq 2"><i class="ing">驳回</i></if>
</div>

</div>
<div id="content" style="margin-top:10px;">
<h4 style="padding:10px;background:#35aa47; color:#fff; font-family:'微软雅黑'; width:100%; float:left;">审批记录</h4> 
<div class="softload" style="margin-bottom:60px;"> 
<ul>
	<volist name="check" id="list">
	<li  class="hightli" style="padding:15px;">
		<span class="icon_cont"> 
			<a class="rigtlefr">
				<img width=48 height=48 src="{lanrain:$list.user.pic}" alt="" />
			</a> 
			
			<span class="icon_dis"> 
				<img src="Tpl/Qyapp/Task/images/123.png" style="width:14%;position:absolute;left:-15px;top:-7px;">
			<a >
				<span class="title" style="margin-bottom:10px;">{lanrain:$list.user.name}<if condition="$list['status'] eq 1"><font color="red">通过</font>了此任务<else/><font color="red">驳回</font>了此任务</if></span>
			</a> 
			<span style="color:#a2a2a2"></span>
			<span style="margin-left:15px;color:#a2a2a2">{lanrain:$list.time|date="Y-m-d H:i:s",###}</span>
			
			</span>
		</span>		
		<span class="clear"></span>
	</li> 
	</volist>
	<if condition="$data['status'] eq 1">
	<li class="hightli" style="padding:15px;">
		<span class="icon_cont"> 
			<a href="{lanrain::U('wap_act_info',array('token'=>$_GET['token'],'wecha_id'=>$_GET['wecha_id'],'id'=>$list['id']))}">
				<img width=48 height=48 src="{lanrain:$user.pic}" alt="" />
			</a> 
			
			<span class="icon_dis"> 
		<img src="Tpl/Qyapp/Task/images/123.png" style="width:14%;position:absolute;left:-15px;top:-7px;">
			<a >
				<span class="title" style="margin-bottom:10px;">任务完成</span>
			</a> 
			<span style="color:#a2a2a2"></span>
			<span style="margin-left:15px;color:#a2a2a2"><!-- {lanrain:$data.mktime|date="Y-m-d H:i:s",###} --></span>
			</span>
		</span>		
		<span class="clear"></span>
		<div>
	</li> 
	</if>
</ul> 
</div> 
</div> 
<br><br>
<div id="frame" >
<div id="menu" style="position:fixed;bottom:0px;width:100%;height:44px;line-height:44px;z-index:999;">
<if condition="$checks['status']">
	<ul style="margin:0 auto;list-style-type:none;width:100%;max-width:500px;height:100%;">
	<if condition="$checks['status'] eq 2">
		<a ><li style="border-right:solid 1px #ccc;"><div class="menu_li"><font color="red">&nbsp;已驳回</font></div>
	<else/>
		<a ><li style="border-right:solid 1px #ccc;"><div class="menu_li"><font color="red">&nbsp;驳回</font></div>
	</if>
		</li></a>
		
	<if condition="$checks['status'] eq 1">
		<a ><li style="border-right:solid 1px #ccc"><div class="menu_li"><font color="green">&nbsp;已同意</font></div>
	<else/>
		<a ><li style="border-right:solid 1px #ccc"><div class="menu_li"><font color="green">&nbsp;同意</font></div>
	</if>
		</li></a>
	</ul>
<else/>
	<ul style="margin:0 auto;list-style-type:none;width:100%;max-width:500px;height:100%;">
		<a  class="back"><li style="border-right:solid 1px #ccc;"><div class="menu_li"><font color="red">&nbsp;驳回</font></div>
		</li></a>
		<a class="submit"><li style="border-right:solid 1px #ccc"><div class="menu_li"><font color="green">&nbsp;同意</font></div>
		</li></a>
	</ul>
</if>
	
</div>
<style>
#menu ul li{float:left;width:49.6%;height:100%;text-align:center;position:relative;font-size:14px;}
#menu ul li .line{position:absolute;top:0px;right:0px;z-index:30;}
#menu ul li .menu_li{position:absolute;top:0px;left:0px;z-index:20;width:100%;height:100%;color:#454545;background:url(./Tpl/Qyapp/Workflow/images/menubg.png) repeat-x;}
#menu ul li .img_front{position:absolute;top:0px;left:0px;z-index:30;width:100%;height:100%;}
#menu ul li .img_front img{width:100%;height:100%;}
#menu ul li span{position:absolute;bottom:-300px;left:50%;width:104px;margin-left:-52px;height:auto;text-align:center;z-index:10;}
#menu ul li span a{float:left;width:100%;height:43px;line-height:43px;color:#454545;text-decoration:none;}
</style>
</div>			
</body>